interface FetchHelpDetailAPIParams {
  id: string
}

interface FetchHelpDetailAPIResData {
  code: number
  msg: string
  time: string
  data: HelpDetail
}

/**
 * @description 根据传入的 id，获取“使用帮助”详情数据
 */
export function fetchHelpDetailAPI(params: FetchHelpDetailAPIParams, token: string) {
  return httpInstance.get<FetchHelpDetailAPIResData, FetchHelpDetailAPIParams>(
    '/api/notice/help_detail',
    { params, headers: { token } },
  )
}
